403Webshell
Server IP : 151.101.66.159  /  Your IP : 216.73.216.66
Web Server : Flywheel/5.1.0
System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64
User : root ( )
PHP Version : 7.4.33.18
Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wp-content/plugins/file-manager-advanced/application/assets/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wp-content/plugins/file-manager-advanced/application/assets/dist/821.2efb7f37.chunk.js
/*! For license information please see 821.2efb7f37.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunkafm_react_admin=self.webpackChunkafm_react_admin||[]).push([[821],{7821(e,t,n){n.r(t),n.d(t,{default:()=>N});var i=n(6540),a=(n(5486),n(5688)),o=n(7850),r=n(7554),l=n(4848);function s(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,r,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return l}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function p(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,i,a,o){var s=i&&i.prototype instanceof l?i:l,c=Object.create(s.prototype);return b(c,"_invoke",function(n,i,a){var o,l,s,c=0,d=a||[],u=!1,f={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return o=t,l=0,s=e,f.n=n,r}};function m(n,i){for(l=n,s=i,t=0;!u&&c&&!a&&t<d.length;t++){var a,o=d[t],m=f.p,h=o[2];n>3?(a=h===i)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=m&&((a=n<2&&m<o[1])?(l=0,f.v=i,f.n=o[1]):m<h&&(a=n<3||o[0]>i||i>h)&&(o[4]=n,o[5]=i,f.n=h,l=0))}if(a||n>1)return r;throw u=!0,i}return function(a,d,h){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&m(d,h),l=d,s=h;(t=l<2?e:s)||!u;){o||(l?l<3?(l>1&&(f.n=-1),m(l,s)):f.n=s:f.v=s);try{if(c=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(u=f.n<0)?s:n.call(i,f))!==r)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:u}}}(n,a,o),!0),c}var r={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var d=[][i]?t(t([][i]())):(b(t={},i,function(){return this}),t),u=c.prototype=l.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,b(e,a,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=c,b(u,"constructor",c),b(c,"constructor",s),s.displayName="GeneratorFunction",b(c,a,"GeneratorFunction"),b(u),b(u,a,"Generator"),b(u,i,function(){return this}),b(u,"toString",function(){return"[object Generator]"}),(p=function(){return{w:o,m:f}})()}function b(e,t,n,i){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}b=function(e,t,n,i){function o(t,n){b(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},b(e,t,n,i)}function g(e,t,n,i,a,o,r){try{var l=e[o](r),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(i,a)}function w(e){return function(){var t=this,n=arguments;return new Promise(function(i,a){var o=e.apply(t,n);function r(e){g(o,i,a,r,l,"next",e)}function l(e){g(o,i,a,r,l,"throw",e)}r(void 0)})}}var y=i.lazy(w(p().m(function e(){var t;return p().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.e(305).then(n.bind(n,3305));case 1:return e.n=2,n.e(708).then(n.t.bind(n,5708,23));case 2:return t=e.v,e.a(2,{default:t.default})}},e)}))),_={1:"Heading 1",2:"Heading 2",3:"Heading 3",4:"Heading 4"},j=function(e){return null==e||""===e||"false"===e?"Normal":_[String(e)]||"Normal"};function x(e){var t=e.value,n=e.onChange,a=e.readOnly,o=e.modules,r=e.formats,s=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e=s.current;if(e){var t=function(){return function(e){e&&(e.querySelectorAll(".ql-picker.ql-header .ql-picker-item").forEach(function(e){var t=j(e.getAttribute("data-value"));e.textContent!==t&&(e.textContent=t)}),e.querySelectorAll(".ql-picker.ql-header .ql-picker-label").forEach(function(e){var t=e.querySelector(".afm-ql-header-text");t||((t=document.createElement("span")).className="afm-ql-header-text",e.insertBefore(t,e.firstChild));var n=j(e.getAttribute("data-value"));t.textContent!==n&&(t.textContent=n)}))}(e)};t();var n=window.setTimeout(t,50),i=window.setTimeout(t,250),a=new MutationObserver(t);return a.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-value","class"]}),function(){window.clearTimeout(n),window.clearTimeout(i),a.disconnect()}}},[t,a]),(0,l.jsx)("div",{className:"afm-notif-editor",ref:s,children:(0,l.jsx)(i.Suspense,{fallback:(0,l.jsx)("div",{className:"afm-notif-editor__loading",children:"Loading editor..."}),children:(0,l.jsx)(y,{theme:"snow",value:t,onChange:n,readOnly:a,modules:o,formats:r})})})}var k="AFM File Log Recent Activity",S=function(e){return("string"==typeof e?e.trim():"")||k};function N(){var e,t,n,c,u,m,h,p,b,g=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onContentReady,w=(0,a.lA)(),y=(null===(e=window.wpApiSettings)||void 0===e?void 0:e.nonce)||(null===(t=window.afmReact)||void 0===t?void 0:t.nonce)||"",_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t="".concat(w,"file-manager-advanced/v1/notifications");if(!e||"object"!==v(e))return t;var n=new URLSearchParams(e).toString();return n?"".concat(t).concat(t.includes("?")?"&":"?").concat(n):t},j=f((0,i.useState)(null),2),N=j[0],A=j[1],C=f((0,i.useState)(!0),2),O=C[0],P=C[1];(0,i.useEffect)(function(){O||null==g||g()},[O,g]);var T=f((0,i.useState)(!1),2),E=T[0],I=T[1],R=f((0,i.useState)(null),2),F=R[0],M=R[1],U=f((0,i.useState)("email"),2),L=U[0],q=U[1],W=f((0,i.useState)(!1),2),D=W[0],H=W[1],z=f((0,i.useState)(!1),2),G=z[0],B=z[1],X=f((0,i.useState)(""),2),J=X[0],Y=X[1],$=f((0,i.useState)(""),2),K=$[0],Q=$[1],V=function(e){return e?e.split("\n\n").map(function(e){return"<p>".concat(e.split("\n").join("<br>"),"</p>")}).join(""):""},Z=function(e){return!(!e||"string"!=typeof e)&&/<(?:p|br|strong|b|em|i|u|s|strike|h[1-6]|ul|ol|li|a|img|div|span)\b/i.test(e)},ee=function(e){return String(e||"").replace(/<[^>]+>/g,"").replace(/&nbsp;/gi," ").replace(/\s+/g,"").toLowerCase()},te="Hi {admin_email},\n\nA quick update from the Advanced File Manager plugin on your site {site_name}.\nA {item_type} was {event} by {username} on {date_time}. The {item_type} name is {file_name} with the extension {ext}, and the action was performed from the following IP Address: {ip_address}.",ne=function(e,t){return function(e,t){var n="string"==typeof e&&""!==e.trim()?e:t;if(!n)return"";if(function(e){return!(!e||"string"!=typeof e||!(e.includes("\n")||/<br\s*\/?>/i.test(e)||(e.match(/<p\b/gi)||[]).length>=2))}(n))return Z(n)?n:V(n);var i=ee(n),a=ee(t||te),o=ee("Hi {admin_email},\n\nA quick update from the Advanced File Manager plugin on your site {site_name}.\nA file was {event} by {username} on {date_time}. The file name is {file_name} with the extension {ext}, and the action was performed from the following IP Address: {ip_address}.");return!i||i!==a&&i!==o?Z(n)?n:V(n):"<p>Hi {admin_email},</p><p>A quick update from the Advanced File Manager plugin on your site {site_name}.<br>A {item_type} was {event} by {username} on {date_time}. The {item_type} name is {file_name} with the extension {ext}, and the action was performed from the following IP Address: {ip_address}.</p>"}(e,t)},ie=function(e){return e&&"<p><br></p>"!==e?e:""},ae=f((0,i.useState)(V("Hi {admin_email},\n\nA quick update from the Advanced File Manager plugin on your site {site_name}.\nA {item_type} was {event} by {username} on {date_time}. The {item_type} name is {file_name} with the extension {ext}, and the action was performed from the following IP Address: {ip_address}.")),2),oe=ae[0],re=ae[1],le=f((0,i.useState)(V("Hi {admin_email},\n\nA quick update from the Advanced File Manager plugin on your site {site_name}.\nA {item_type} was {event} by {username} on {date_time}. The {item_type} name is {file_name} with the extension {ext}, and the action was performed from the following IP Address: {ip_address}.")),2),se=le[0],ce=le[1],de=f((0,i.useState)(""),2),ue=de[0],fe=de[1],me=f((0,i.useState)([]),2),he=me[0],ve=me[1],pe=f((0,i.useState)([]),2),be=pe[0],ge=pe[1],we=(null===(n=window.afmReact)||void 0===n?void 0:n.hasPro)||!1,ye=!(null===(c=window.afmReact)||void 0===c||!c.hasActiveSmtpPlugin),_e=(null===(u=window.afmReact)||void 0===u?void 0:u.currentPlan)||"free",je=(null===(m=window.afmReact)||void 0===m||m.pricingUrl,(null===(h=window.afmReact)||void 0===h?void 0:h.smtpSettingsUrl)||"".concat(window.location.origin,"/wp-admin/admin.php?page=file-manager-advanced-recommend-post-smtp")),xe=je+(je.includes("?")?"&":"?")+"afm_embed=1",ke=function(e){return"email"===e||"slack"===e||"smtp"===e},Se=(0,o.w)("slack_notification",_e,we),Ne=!we,Ae=Ne||D,Ce=Ne||G,Oe=Ne||D,Pe=(Ne||G)&&(Ne||Se);(0,i.useLayoutEffect)(function(){var e=sessionStorage.getItem("afm-notifications-subtab");if(!ke(e)||"smtp"===e&&ye){var t=(window.location.hash||"").replace(/^#/,"").replace(/^\//,"");if(t.startsWith("notifications/")){var n=t.split("/");if(n.length>1){var i=n[1].split("?")[0].toLowerCase();if(ke(i)&&("smtp"!==i||!ye))return sessionStorage.setItem("afm-notifications-subtab",i),void q(i)}}if("notifications"===t)return sessionStorage.setItem("afm-notifications-subtab","email"),void q("email");sessionStorage.setItem("afm-notifications-subtab","email"),q("email")}else q(e)},[]),(0,i.useEffect)(function(){L&&sessionStorage.setItem("afm-notifications-subtab",L)},[L]),(0,i.useEffect)(function(){var e=function(){var e=(window.location.hash||"").replace(/^#/,"").replace(/^\//,"");if(e.startsWith("notifications/")){var t=e.split("/");if(t.length>1){var n=t[1].split("?")[0].toLowerCase();if(ke(n)&&("smtp"!==n||!ye))return sessionStorage.setItem("afm-notifications-subtab",n),void q(function(e){return e!==n?n:e})}}if("notifications"===e){var i=sessionStorage.getItem("afm-notifications-subtab")||"email",a=ke(i)?i:"email",o="#/notifications/".concat(a);if(window.history&&window.history.replaceState){var r=window.location.href.split("#")[0]+o;window.history.replaceState(null,"",r)}else window.location.hash=o;q(function(e){return e!==a?a:e})}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[]);var Te=(0,i.useRef)(!0);(0,i.useEffect)(function(){if(Te.current)Te.current=!1;else{var e="#/notifications/".concat(L);if(window.history&&window.history.replaceState){var t=window.location.href.split("#")[0]+e;window.history.replaceState(null,"",t)}else window.location.hash=e}},[L]);var Ee=[{value:"rm",label:"Delete File/Folder"},{value:"mkfile",label:"Create File"},{value:"mkdir",label:"Create Folder"}],Ie=[{code:"{username}",desc:"This will fetch the user's name who did the action"},{code:"{ip_address}",desc:"This will fetch the user's IP Address"},{code:"{event}",desc:"This will fetch which action the user performed (created/deleted)"},{code:"{item_type}",desc:"This will fetch whether the target is a file or folder"},{code:"{file_name}",desc:"This will fetch the file name on which that action was done"},{code:"{ext}",desc:"This will fetch the extension or mime type for the target item"},{code:"{date_time}",desc:"This will fetch the date the user acted on the file"},{code:"{site_name}",desc:"This will fetch the site name on which the action was performed"}];(0,i.useEffect)(function(){if(w&&y){var e=new URLSearchParams(window.location.search).get("webhook_url"),t=Promise.resolve();e&&(t=fetch(_(),{method:"POST",credentials:"same-origin",headers:{"X-WP-Nonce":y,"Content-Type":"application/json"},body:JSON.stringify({slack:{webhook_url:decodeURIComponent(e),enable:"yes"}})}).then(function(){var e=window.location.href.split("&webhook_url=")[0].split("?webhook_url=")[0];window.history.replaceState({},"",e)}).catch(function(e){console.error("AFM Notifications webhook save error:",e)})),t.then(function(){setTimeout(function(){fetch(_({_t:String(Date.now())}),{credentials:"same-origin",headers:{"X-WP-Nonce":y}}).then(function(e){return e.ok?e.json():Promise.reject("Failed to fetch")}).then(function(t){var n,i,a,o,r,l,s,c,d;A(t),H("yes"===(null==t||null===(n=t.email)||void 0===n?void 0:n.enable)),B("yes"===(null==t||null===(i=t.slack)||void 0===i?void 0:i.enable)),Y((null==t||null===(a=t.email)||void 0===a?void 0:a.email)||""),Q(S(null==t||null===(o=t.email)||void 0===o?void 0:o.subject)),ve(Array.isArray(null==t||null===(r=t.email)||void 0===r?void 0:r.events)?t.email.events:[]),re(ne(null==t||null===(l=t.email)||void 0===l?void 0:l.message,te)),ge(Array.isArray(null==t||null===(s=t.slack)||void 0===s?void 0:s.events)?t.slack.events:[]),ce(ne(null==t||null===(c=t.slack)||void 0===c?void 0:c.message,te));var u=e?decodeURIComponent(e):"";fe(u||(null==t||null===(d=t.slack)||void 0===d?void 0:d.webhook_url)||""),P(!1)}).catch(function(e){console.error("AFM Notifications fetch error:",e),P(!1)})},500)})}else console.warn("AFM Notifications: Missing API root or nonce")},[w,y]);var Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e&&e.preventDefault&&e.preventDefault(),we){if(N&&!E){I(!0),M(null);var n={email:d({enable:D?"yes":"no",email:J||"",events:he||[],subject:S(K),message:ie(oe)||""},(null==t?void 0:t.email)||{}),slack:d({enable:G?"yes":"no",webhook_url:ue||"",events:be||[],message:ie(se)||""},(null==t?void 0:t.slack)||{})};fetch(_(),{method:"POST",credentials:"same-origin",headers:{"X-WP-Nonce":y,"Content-Type":"application/json"},body:JSON.stringify(n)}).then(function(e){return e.ok?e.json():Promise.reject(e)}).then(function(e){if(M({type:"success",text:e.message||"Notification settings saved successfully."}),I(!1),setTimeout(function(){return M(null)},5e3),null!=e&&e.email||null!=e&&e.slack){var t=d(d({},N||{}),{},{email:e.email||(null==N?void 0:N.email),slack:e.slack||(null==N?void 0:N.slack)});return A(t),e.email&&(H("yes"===e.email.enable),Y(e.email.email||""),Q(S(e.email.subject)),ve(Array.isArray(e.email.events)?e.email.events:[]),re(ne(e.email.message,te))),void(e.slack&&(B("yes"===e.slack.enable),ge(Array.isArray(e.slack.events)?e.slack.events:[]),ce(ne(e.slack.message,te)),fe(e.slack.webhook_url||"")))}return fetch(_(),{credentials:"same-origin",headers:{"X-WP-Nonce":y}}).then(function(e){return e.ok?e.json():Promise.reject(e)}).then(function(e){var t,n,i,a,o,r,l,s,c;A(e),H("yes"===(null==e||null===(t=e.email)||void 0===t?void 0:t.enable)),B("yes"===(null==e||null===(n=e.slack)||void 0===n?void 0:n.enable)),Y((null==e||null===(i=e.email)||void 0===i?void 0:i.email)||""),Q(S(null==e||null===(a=e.email)||void 0===a?void 0:a.subject)),ve(Array.isArray(null==e||null===(o=e.email)||void 0===o?void 0:o.events)?e.email.events:[]),re(ne(null==e||null===(r=e.email)||void 0===r?void 0:r.message,te)),ge(Array.isArray(null==e||null===(l=e.slack)||void 0===l?void 0:l.events)?e.slack.events:[]),ce(ne(null==e||null===(s=e.slack)||void 0===s?void 0:s.message,te)),fe((null==e||null===(c=e.slack)||void 0===c?void 0:c.webhook_url)||"")})}).catch(function(e){console.error("AFM Notifications save error:",e),M({type:"error",text:e.message||"Failed to save notification settings."}),I(!1),setTimeout(function(){return M(null)},5e3)})}}else alert("Pro version is required for notifications.")},Fe=(null===(p=window.afmReact)||void 0===p?void 0:p.pluginUrl)||(null===(b=window.afm_object)||void 0===b?void 0:b.plugin_url)||"/wp-content/plugins/file-manager-advanced/",Me="https://slack.advancedfilemanager.com?install_application=true&redirect_to=".concat(encodeURIComponent("".concat(window.location.origin,"/wp-admin/admin.php?page=file_manager_advanced_ui#/notifications/slack"))),Ue=(0,i.useCallback)(function(e,t){var n=(t||"").trim();if(n&&e)if(/^https?:\/\//i.test(n)||n.startsWith("data:image/")){var i=e.getSelection(!0)||{index:e.getLength()};e.insertEmbed(i.index,"image",n,"user"),e.setSelection(i.index+1,0,"user")}else window.alert("Please enter a valid image URL (http:// or https://).")},[]),Le=(0,i.useMemo)(function(){return{toolbar:{container:[[{header:[1,2,3,4,!1]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"}],["clean"],[{list:"ordered"},{list:"bullet"}],["image","link"]],handlers:{image:function(){var e=this.quill;if(e){if(window.wp&&wp.media){var t=wp.media({title:"Select or Upload Image",button:{text:"Use this image"},multiple:!1,library:{type:"image"}});return t.on("select",function(){var n=t.state().get("selection").first();if(n){var i=n.toJSON();Ue(e,i.url||i.link||"")}}),void t.open()}var n=window.prompt("Enter image URL");n&&Ue(e,n)}}}}}},[Ue]),qe=(0,i.useMemo)(function(){return["header","bold","italic","underline","strike","align","list","image","link"]},[]),We=(0,i.useMemo)(function(){return{toolbar:[["bold","italic","strike"],["clean"],[{list:"ordered"},{list:"bullet"}],["link"]]}},[]),De=(0,i.useMemo)(function(){return["bold","italic","strike","list","link"]},[]),He=(0,i.useCallback)(function(e){re("string"==typeof e?e:"")},[]),ze=(0,i.useCallback)(function(e){ce("string"==typeof e?e:"")},[]),Ge=function(e){sessionStorage.setItem("afm-notifications-hash-just-set","true"),q(e);var t="#/notifications/".concat(e);if(window.history&&window.history.replaceState){var n=window.location.href.split("#")[0]+t;window.history.replaceState(null,"",n)}else window.location.hash=t;setTimeout(function(){sessionStorage.removeItem("afm-notifications-hash-just-set")},2e3)};if(O)return(0,l.jsxs)("div",{className:"afm-settings-shell",children:[(0,l.jsxs)("div",{className:"afm-settings-subnav","aria-hidden":"true",children:[(0,l.jsx)("span",{className:"afm-settings-subnav__tab is-active",children:"Email Notifications"}),(0,l.jsx)("span",{className:"afm-settings-subnav__tab",children:"Slack Notifications"}),!ye&&(0,l.jsx)("span",{className:"afm-settings-subnav__tab",children:"SMTP"})]}),(0,l.jsx)("div",{className:"afm-settings-body",children:(0,l.jsxs)("div",{className:"afm-settings-card",children:[(0,l.jsx)("style",{children:"\n              @keyframes afm-skeleton-shimmer {\n                0% { background-position: -200% 0; }\n                100% { background-position: 200% 0; }\n              }\n              .afm-skeleton {\n                background-color: #e2e8f0;\n                background-image: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);\n                background-size: 200% 100%;\n                animation: afm-skeleton-shimmer 1.4s linear infinite;\n              }\n            "}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"40px",width:"260px",borderRadius:"6px",marginBottom:"30px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"42px",width:"100%",maxWidth:"600px",borderRadius:"6px",marginBottom:"12px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"42px",width:"100%",maxWidth:"600px",borderRadius:"6px",marginBottom:"12px"}}),(0,l.jsx)("div",{className:"afm-skeleton",style:{height:"120px",width:"100%",maxWidth:"600px",borderRadius:"6px"}})]})})]});var Be="smtp"!==L&&("email"===L&&Oe||"slack"===L&&Pe),Xe=E||!we||"slack"===L&&!Se,Je=function(e){var t=e.id,n=e.name,i=e.checked,a=e.disabled,o=e.onChange;return(0,l.jsx)("button",{type:"button",id:t,name:n,role:"switch","aria-checked":i,disabled:a,className:"afm-switch".concat(i?" is-on":""),onClick:function(e){e.preventDefault(),!a&&o&&o({target:{checked:!i}})},children:(0,l.jsx)("span",{className:"afm-switch__knob","aria-hidden":"true"})})},Ye=function(){return(0,l.jsxs)("div",{className:"afm-notif-placeholders",children:[(0,l.jsx)("p",{className:"afm-notif-placeholders__title",children:"Available placeholders:"}),(0,l.jsx)("div",{className:"afm-notif-placeholders__list",children:Ie.map(function(e,t){return(0,l.jsxs)("p",{className:"afm-notif-placeholders__item",children:[(0,l.jsx)("span",{className:"afm-notif-placeholders__code",children:e.code}),"- ",e.desc]},t)})})]})},$e=function(e){var t=e.name,n=e.selected,i=e.onToggle,a=e.disabled;return(0,l.jsxs)("div",{className:"afm-form-field",children:[(0,l.jsx)("div",{className:"afm-field-head",children:(0,l.jsx)("label",{className:"afm-field-label",children:"Events Notification"})}),(0,l.jsx)("div",{className:"afm-notif-events",children:Ee.map(function(e){var o="".concat(t.replace(/[^a-z0-9_-]/gi,"-"),"-").concat(e.value);return(0,l.jsxs)("div",{className:"afm-notif-events__item".concat(a?" is-disabled":""),children:[(0,l.jsx)("input",{id:o,type:"checkbox",name:t,value:e.value,checked:n.includes(e.value),onChange:function(t){return i(e.value,t.target.checked)},disabled:a}),(0,l.jsx)("label",{htmlFor:o,children:e.label})]},e.value)})})]})};return(0,l.jsxs)("div",{className:"afm-settings-shell",children:[(0,l.jsxs)("nav",{className:"afm-settings-subnav","aria-label":"Notification channels",children:[(0,l.jsx)("a",{href:"#/notifications/email",onClick:function(e){e.preventDefault(),Ge("email")},className:"afm-settings-subnav__tab".concat("email"===L?" is-active":""),children:"Email Notifications"}),(0,l.jsx)("a",{href:"#/notifications/slack",onClick:function(e){e.preventDefault(),Ge("slack")},className:"afm-settings-subnav__tab".concat("slack"===L?" is-active":""),children:"Slack Notifications"}),!ye&&(0,l.jsx)("a",{href:"#/notifications/smtp",onClick:function(e){e.preventDefault(),Ge("smtp")},className:"afm-settings-subnav__tab".concat("smtp"===L?" is-active":""),children:"SMTP"})]}),(0,l.jsx)("div",{className:"afm-settings-body",children:(0,l.jsxs)("div",{className:"afm-settings-card",children:[F&&(0,l.jsxs)("div",{className:"afm-snackbar afm-snackbar-".concat("success"===F.type?"success":"error"),onClick:function(){return M(null)},style:{animation:"afm-slideIn 0.3s ease-out"},children:[(0,l.jsx)("span",{style:{fontSize:"14px",lineHeight:"1.5",flex:"1"},children:F.text}),(0,l.jsx)("button",{type:"button",className:"afm-snackbar-close",onClick:function(e){e.preventDefault(),e.stopPropagation(),M(null)},"aria-label":"Dismiss",children:"×"})]}),"smtp"===L&&!ye&&(0,l.jsx)("iframe",{title:"SMTP",src:xe,className:"afm-notif-smtp-frame"}),"smtp"!==L&&(0,l.jsxs)("form",{onSubmit:function(e){return Re(e)},className:"afm-stacked-form afm-notif-form",children:["email"===L&&(0,l.jsx)(r.A,{shouldShow:!we,children:(0,l.jsxs)("div",{className:"afm-notif-channel",children:[(0,l.jsxs)("div",{className:"afm-notif-channel__head",children:[(0,l.jsxs)("div",{className:"afm-notif-channel__title",children:[(0,l.jsx)("span",{className:"afm-notif-channel__icon","aria-hidden":"true",children:(0,l.jsx)("img",{src:"".concat(Fe,"application/assets/images/email_notification.svg"),alt:"",width:"24",height:"24"})}),(0,l.jsx)("span",{className:"afm-field-label",children:"Email Notifications"})]}),(0,l.jsx)(Je,{id:"email_enable",name:"email_enable",checked:Ae,disabled:!we,onChange:function(){var e=!D;H(e),Re(null,{email:{enable:e?"yes":"no"}})}})]}),Oe&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"afm-form-field",children:[(0,l.jsx)("div",{className:"afm-field-head",children:(0,l.jsx)("label",{className:"afm-field-label",htmlFor:"email_address",children:"Emails"})}),(0,l.jsxs)("div",{className:"afm-field-input",children:[(0,l.jsx)("input",{type:"email",id:"email_address",name:"email_address",value:J,onChange:function(e){return Y(e.target.value)},disabled:!we,placeholder:"Enter email address"}),(0,l.jsx)("p",{className:"afm-field-help",children:"Email address to send notification."})]})]}),(0,l.jsx)($e,{name:"email_events[]",selected:he,disabled:!we,onToggle:function(e,t){ve(function(n){return t?[].concat(s(n),[e]):n.filter(function(t){return t!==e})})}}),(0,l.jsxs)("div",{className:"afm-form-field",children:[(0,l.jsx)("div",{className:"afm-field-head",children:(0,l.jsx)("label",{className:"afm-field-label",htmlFor:"email_subject",children:"Emails Subject"})}),(0,l.jsxs)("div",{className:"afm-field-input",children:[(0,l.jsx)("input",{type:"text",id:"email_subject",name:"email_subject",value:K,onChange:function(e){return Q(e.target.value)},disabled:!we,placeholder:k}),(0,l.jsx)("p",{className:"afm-field-help",children:"Subject of the email notification."})]})]}),(0,l.jsxs)("div",{className:"afm-form-field afm-form-field--editor",children:[(0,l.jsx)("div",{className:"afm-field-head",children:(0,l.jsx)("label",{className:"afm-field-label",children:"Emails Message"})}),(0,l.jsxs)("div",{className:"afm-field-input",children:[(0,l.jsx)(x,{value:oe,onChange:He,readOnly:!we,modules:Le,formats:qe}),(0,l.jsx)("input",{type:"hidden",name:"email_message",value:oe}),(0,l.jsxs)("p",{className:"afm-field-help",children:["Message body of the email notification. You can use placeholders like ","{file_name}",", ","{action}"," etc."]}),(0,l.jsx)(Ye,{})]})]})]})]})}),"slack"===L&&(0,l.jsx)(r.A,{shouldShow:!we||!Se,children:(0,l.jsxs)("div",{className:"afm-notif-channel",children:[(0,l.jsxs)("div",{className:"afm-notif-channel__head",children:[(0,l.jsxs)("div",{className:"afm-notif-channel__title",children:[(0,l.jsx)("span",{className:"afm-notif-channel__icon","aria-hidden":"true",children:(0,l.jsx)("img",{src:"".concat(Fe,"application/assets/images/slack_notification.svg"),alt:"",width:"24",height:"24"})}),(0,l.jsx)("span",{className:"afm-field-label",children:"Slack Notifications"})]}),(0,l.jsx)(Je,{id:"slack_enable",name:"slack_enable",checked:Ce,disabled:!we||!Se,onChange:function(){var e=!G;B(e),Re(null,{slack:{enable:e?"yes":"no"}})}})]}),Pe&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"afm-form-field",children:[(0,l.jsx)("div",{className:"afm-field-head",children:(0,l.jsx)("label",{className:"afm-field-label",htmlFor:"slack_webhook_url",children:"Slack Webhook URL"})}),(0,l.jsxs)("div",{className:"afm-field-input",children:[(0,l.jsx)("input",{type:"url",id:"slack_webhook_url",name:"slack_webhook_url",value:ue,onChange:function(e){return fe(e.target.value)},disabled:!we||!Se,placeholder:"Webhook.slack.com"}),(0,l.jsxs)("p",{className:"afm-field-help",children:["Enable your Slack Webhook URL to receive notifications."," ",(0,l.jsx)("a",{className:"afm-field-link",href:Me,target:"_blank",rel:"noopener noreferrer",children:"Click here to get your webhook URL."})]})]})]}),(0,l.jsx)($e,{name:"slack_events[]",selected:be,disabled:!we||!Se,onToggle:function(e,t){ge(function(n){return t?[].concat(s(n),[e]):n.filter(function(t){return t!==e})})}}),(0,l.jsxs)("div",{className:"afm-form-field afm-form-field--editor",children:[(0,l.jsx)("div",{className:"afm-field-head",children:(0,l.jsx)("label",{className:"afm-field-label",children:"Slack Message"})}),(0,l.jsxs)("div",{className:"afm-field-input",children:[(0,l.jsx)(x,{value:se,onChange:ze,readOnly:!we||!Se,modules:We,formats:De}),(0,l.jsx)("input",{type:"hidden",name:"slack_message",value:se}),(0,l.jsxs)("p",{className:"afm-field-help",children:["Customize the message to be sent to Slack. You can use placeholders like ","{file_name}",", ","{action}"," etc."]}),(0,l.jsx)(Ye,{})]})]})]})]})}),Be&&(0,l.jsx)("div",{className:"afm-notif-actions",children:(0,l.jsx)("button",{type:"submit",name:"submit",id:"submit",className:"button button-primary afm-teal-button",disabled:Xe,children:E?"Saving...":"Save Changes"})})]})]})})]})}},5688(e,t,n){function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,r,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function o(){var e,t;return function(e){if(!e||"string"!=typeof e)return e;try{var t=new URL(e,window.location.origin);return t.protocol=window.location.protocol,t.host=window.location.host,t.toString()}catch(t){return e.startsWith("/")?"".concat(window.location.origin).concat(e):e}}((null===(e=window.wpApiSettings)||void 0===e?void 0:e.root)||(null===(t=window.afmReact)||void 0===t?void 0:t.jsonURL)||"".concat(window.location.origin,"/?rest_route=/"))}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o(),a=n.endsWith("/")?n:"".concat(n,"/"),r=String(e||"").replace(/^\//,""),l=Object.entries(t).filter(function(e){var t=i(e,2)[1];return null!=t&&""!==t}).map(function(e){var t=i(e,2),n=t[0],a=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(a)))});if(a.includes("rest_route=")){var s="".concat(a.split("rest_route=")[0],"rest_route="),c="".concat(s,"/").concat(r);return l.length&&(c+="&".concat(l.join("&"))),c}if(a.includes("/wp-json")){var d=function(e){try{return new URL(e,window.location.origin).origin}catch(e){return window.location.origin}}(a),u="".concat(d,"/?rest_route=/").concat(r);return l.length&&(u+="&".concat(l.join("&"))),u}var f="".concat(a).concat(r);return l.length&&(f+="?".concat(l.join("&"))),f}n.d(t,{_H:()=>r,lA:()=>o})},7850(e,t,n){n.d(t,{w:()=>a});var i={basic:{dropbox:!1,googledrive:!1,onedrive:!1,amazons3:!1,github:!1,googlecloud:!1,pcloud:!1,cloudflarer2:!1,wasabi:!1,digitalocean:!1,email_notification:!0,slack_notification:!1,filelogs:!0,adminer:!1,frontend_access:!0,public_access:!0,role_based_access:!0,individual_access:!0,private_folders:!1,hide_sensitive_files:!0,multilingual:!0,flexible_view:!0,flexible_root:!0,operations_control:!0,complete_operations:!0,advance_themes:!1,gutenberg_blocks:!0,code_editor_themes:!1,ai_integration:!1},professional:{dropbox:!0,googledrive:!0,onedrive:!0,amazons3:!0,github:!0,googlecloud:!0,pcloud:!0,cloudflarer2:!0,wasabi:!0,digitalocean:!1,email_notification:!0,slack_notification:!0,filelogs:!0,adminer:!1,frontend_access:!0,public_access:!0,role_based_access:!0,individual_access:!0,private_folders:!0,hide_sensitive_files:!0,multilingual:!0,flexible_view:!0,flexible_root:!0,operations_control:!0,complete_operations:!0,advance_themes:!0,gutenberg_blocks:!0,code_editor_themes:!0,ai_integration:!1},business:{dropbox:!0,googledrive:!0,onedrive:!0,amazons3:!0,github:!0,googlecloud:!0,pcloud:!0,cloudflarer2:!0,wasabi:!0,digitalocean:!1,email_notification:!0,slack_notification:!0,filelogs:!0,adminer:!0,frontend_access:!0,public_access:!0,role_based_access:!0,individual_access:!0,private_folders:!0,hide_sensitive_files:!0,multilingual:!0,flexible_view:!0,flexible_root:!0,operations_control:!0,complete_operations:!0,advance_themes:!0,gutenberg_blocks:!0,code_editor_themes:!0,ai_integration:!0}};function a(e,t,n){return!!n&&"free"!==t&&!!i[t]&&!0===i[t][e]}}}]);
//# sourceMappingURL=821.2efb7f37.chunk.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit